package com.bidevalution.business.context;

public enum LogType {

	SERVICE_API, EXTERNAL_REQUEST, ORDINARY;

	public static LogType getLogType(String name) {
		for(LogType item : LogType.values()) {
			if(item.name().equals(name)) {
				return item;
			}
		}
		return null;
	}

	public static boolean exist(String name) {
		for(LogType item : LogType.values()) {
			if(item.name().equals(name)) {
				return true;
			}
		}
		return false;
	}

}
